Enum OU’S & GPO’s

Enum GPO

Get-NetGPOGroup -Verbose

Membership Of RDPUsers

Get-NetGroupMember -GroupName RDPUsers

List All OU’s

Get-NetOU

List All computers To OU

Get-NetOU StudentMachines | %{Get-NetComputer -ADSpath $_}

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/219ca035-23da-4625-b63e-98ffba1648db/Untitled.png

List GPO

Get-NetGPO

Enum GPO Applied To OU

Get-NetGPO -ADSpath 'LDAP://cn={3E04167E-C2B6-4A9A-8FB7-C811158DC97C},cn=policies,cn=system,DC=dollarcorp,DC=moneycorp,DC=local'

Load AD Module:

Active Directory Module.zip

Or use: https://github.com/samratashok/ADModule?files=1

Other Resources

Grouper2:

https://github.com/l0ss/Grouper2

Local Group Enumeration